function setRem(){
    const scale = document.documentElement.clientWidth / 375;

    // console.log(scale)
    document.documentElement.style.fontSize = scale * 100 + 'px'
}

setRem()


window.onresize = function(){
    setRem()
}